using MicroMsg.Protocol;
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace MicroMsg.Storage
{
	[DataContract]
	public class CmdFlow
	{
		[DataMember]
		public Dictionary<string, uint> mapCmdFlow;
		[DataMember]
		public FlowCountInfo mFlowCountInfo;
		public CmdFlow()
		{
			this.mapCmdFlow = new Dictionary<string, uint>();
			this.mFlowCountInfo = new FlowCountInfo();
		}
		public void addItem(int int_0, string cmdUri, uint uint_0)
		{
			if (string.IsNullOrEmpty(cmdUri))
			{
				cmdUri = string.Concat((CmdConst)int_0);
			}
			if (this.mapCmdFlow.ContainsKey(cmdUri))
			{
				Dictionary<string, uint> dictionary;
				string text;
				(dictionary = this.mapCmdFlow).set_Item(text = cmdUri, dictionary.get_Item(text) + uint_0);
				return;
			}
			this.mapCmdFlow.Add(cmdUri, uint_0);
		}
	}
}
